{include file="biz/biz_header.html"} 
<?php
$this->_var['ucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['ucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['ucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['cpucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['cpucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['cpucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['ucctcss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
?>

<script type="text/javascript" src="{function name="parse_script" v="$ucctojs" c="$cpucctojs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$ucctcss"}" />

{include file="biz/biz_nav.html"}
<div class="wrap clearfix wb biz-wrap">
{include file="biz/biz_info_header.html"}
<div class="biz_index_box clearfix">
	<div class="p10 clearfix">
		<style type="text/css">
			ul.commit_list{ padding:0px 10px;}
			ul.commit_list li{ padding:10px; display:block; }
			ul.commit_list li.gray{ background:#f2f2f2;}
		</style>
		
		
		<h3 class="modify-title">
			菜单列表
		</h3>
		<div  style="padding:0 10px;">
			<form name="searchform" class="f_l" action="{url x="biz" r="ctmenu"}" method="post">
			菜单名:<input type="text" class="f-input" name="keyword"  size="16" value="{$keyword}" />
			<select name="sid">
				<option value="0">全部</option>
				{foreach from=$loactions item=lo}
				<option value="{$lo.id}" {if $sid eq $lo.id}selected="selected"{/if}>{$lo.name}</option>
				{/foreach}
			</select>
			<input type="hidden" value="1" name="is_redirect" />
			<input type="submit" value="{$LANG.SEARCH}" class="formbutton" />
			</form>
			<a class="biz_pub_btn f_r" href="{url x="biz" r="ctmenu#publish"}">发布新菜单</a>
		
		</div>
		<div class="blank5"></div>
		<table cellspacing="0" cellpadding="0" border="0" class="data-table">
			<tr>
				<th width="30">编号</th>
				<th width=160>菜单名</th>
				<th>餐厅</th>
				<th width="50">价格</th>
				<th width="40">特色菜</th>
				<th width=40>{$LANG.VIEW}</th>
			</tr>
			{foreach from=$menu_list item=menu key=key}
			<tr {if $key mod 2 eq  1}class="gray"{/if}>
				<td style="text-align:center;">
					{$menu.id}											
				</td>
				<td>{$menu.name}</td>
				<td>{$menu.location_name}</td>
				<td>{function name="format_price" v=$menu.price}</td>
				<td>{if $menu.is_special}<span style="color:red">是</span>{else}否{/if}</td>
				<td>
					<a href="{url x="biz"  r="ctmenu#view" p="id=$menu.id"}">{$LANG.VIEW}</a>
				</td>
			</tr>
			{/foreach}
	</table>
	</div>
	<div class="blank"></div>
	<div class="pages">{$pages}</div>
	<div class="blank"></div>
</div><!--end biz_index_box-->

</div>
<script type="text/javascript">
	$("#uc_ct_begin_date").datepicker({
		dateFormat: 'yy-mm-dd'
	});
	$("#uc_ct_end_date").datepicker({
		dateFormat: 'yy-mm-dd'
	});
</script>
{include file="biz/biz_footer.html"} 